package qf.service;

import qf.pojo.Cart;

import java.util.List;

/**
 * @author 86198
 * @version V1.0
 * @Project Java_qf
 * @Package qf.service
 * @Description:
 * @Date 2022/5/25 16:42
 */
public interface CartService {


    /**
     * 创建购物车
     * @param uid
     * @param pid
     */
    public boolean createCart(Integer uid,Integer pid);

    /**
     * 根据用户id 查询购物车数据
     * @param uid
     * @return
     */
    public List<Cart> selectCartByUid(Integer uid);

    /**
     *删除购物车
     * @param cid
     */
    public void delect (Integer cid);

}
